<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>IgH EtherCAT Master: fsm_soe.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">IgH EtherCAT Master
   &#160;<span id="projectnumber">1.5.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('fsm__soe_8c.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">fsm_soe.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>EtherCAT SoE state machines.  
<a href="#details">More...</a></p>

<p><a href="fsm__soe_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ab02cafd2881eb57c288e078ea57736d5"><td class="memItemLeft" align="right" valign="top"><a id="ab02cafd2881eb57c288e078ea57736d5"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__soe_8c.html#ab02cafd2881eb57c288e078ea57736d5">EC_MBOX_TYPE_SOE</a>&#160;&#160;&#160;0x05</td></tr>
<tr class="memdesc:ab02cafd2881eb57c288e078ea57736d5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Mailbox type for SoE. <br /></td></tr>
<tr class="separator:ab02cafd2881eb57c288e078ea57736d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add5bad0251925ce1779bc0d3e186f547"><td class="memItemLeft" align="right" valign="top"><a id="add5bad0251925ce1779bc0d3e186f547"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__soe_8c.html#add5bad0251925ce1779bc0d3e186f547">EC_SOE_SIZE</a>&#160;&#160;&#160;0x04</td></tr>
<tr class="memdesc:add5bad0251925ce1779bc0d3e186f547"><td class="mdescLeft">&#160;</td><td class="mdescRight">Size of all SoE headers. <br /></td></tr>
<tr class="separator:add5bad0251925ce1779bc0d3e186f547"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e9892fef5e41058583eafca62b7708b"><td class="memItemLeft" align="right" valign="top"><a id="a2e9892fef5e41058583eafca62b7708b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__soe_8c.html#a2e9892fef5e41058583eafca62b7708b">EC_SOE_RESPONSE_TIMEOUT</a>&#160;&#160;&#160;1000</td></tr>
<tr class="memdesc:a2e9892fef5e41058583eafca62b7708b"><td class="mdescLeft">&#160;</td><td class="mdescRight">SoE response timeout [ms]. <br /></td></tr>
<tr class="separator:a2e9892fef5e41058583eafca62b7708b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:a9c7163e5550adaf891eb9afff86b72cd"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__soe_8c.html#a9c7163e5550adaf891eb9afff86b72cd">ec_soe_opcodes</a> { <a class="el" href="fsm__soe_8c.html#a9c7163e5550adaf891eb9afff86b72cda914c75cac48096f5ee9befec8bcf4160">OPCODE_READ_REQUEST</a> = 0x01, 
<a class="el" href="fsm__soe_8c.html#a9c7163e5550adaf891eb9afff86b72cda7b5653448be7413e965de6318740afdc">OPCODE_READ_RESPONSE</a> = 0x02, 
<a class="el" href="fsm__soe_8c.html#a9c7163e5550adaf891eb9afff86b72cda1b5afa15a9b8a6f640ea4307ab399901">OPCODE_WRITE_REQUEST</a> = 0x03, 
<a class="el" href="fsm__soe_8c.html#a9c7163e5550adaf891eb9afff86b72cdacc60027a463033de1a3f6a2ac52a4f0f">OPCODE_WRITE_RESPONSE</a> = 0x04
 }<tr class="memdesc:a9c7163e5550adaf891eb9afff86b72cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">SoE operations.  <a href="fsm__soe_8c.html#a9c7163e5550adaf891eb9afff86b72cd">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:a9c7163e5550adaf891eb9afff86b72cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a490a68315f4cc326d48ebfd5b051b78f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__soe_8c.html#a490a68315f4cc326d48ebfd5b051b78f">ec_fsm_soe_read_start</a> (<a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *fsm, <a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *datagram)</td></tr>
<tr class="memdesc:a490a68315f4cc326d48ebfd5b051b78f"><td class="mdescLeft">&#160;</td><td class="mdescRight">SoE state: READ START.  <a href="#a490a68315f4cc326d48ebfd5b051b78f">More...</a><br /></td></tr>
<tr class="separator:a490a68315f4cc326d48ebfd5b051b78f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab34704de6495b549ad53ca84a80e22ea"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__soe_8c.html#ab34704de6495b549ad53ca84a80e22ea">ec_fsm_soe_read_request</a> (<a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *fsm, <a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *datagram)</td></tr>
<tr class="memdesc:ab34704de6495b549ad53ca84a80e22ea"><td class="mdescLeft">&#160;</td><td class="mdescRight">SoE state: READ REQUEST.  <a href="#ab34704de6495b549ad53ca84a80e22ea">More...</a><br /></td></tr>
<tr class="separator:ab34704de6495b549ad53ca84a80e22ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a428b4a4e8318c83eaa4ecd287caf9e61"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__soe_8c.html#a428b4a4e8318c83eaa4ecd287caf9e61">ec_fsm_soe_read_check</a> (<a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *fsm, <a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *datagram)</td></tr>
<tr class="memdesc:a428b4a4e8318c83eaa4ecd287caf9e61"><td class="mdescLeft">&#160;</td><td class="mdescRight">CoE state: READ CHECK.  <a href="#a428b4a4e8318c83eaa4ecd287caf9e61">More...</a><br /></td></tr>
<tr class="separator:a428b4a4e8318c83eaa4ecd287caf9e61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af87a35609040b73b496b8c1ec9a3aa74"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__soe_8c.html#af87a35609040b73b496b8c1ec9a3aa74">ec_fsm_soe_read_response</a> (<a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *fsm, <a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *datagram)</td></tr>
<tr class="memdesc:af87a35609040b73b496b8c1ec9a3aa74"><td class="mdescLeft">&#160;</td><td class="mdescRight">SoE state: READ RESPONSE.  <a href="#af87a35609040b73b496b8c1ec9a3aa74">More...</a><br /></td></tr>
<tr class="separator:af87a35609040b73b496b8c1ec9a3aa74"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a187c0a9191a7f9755bbe63f72af7088d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__soe_8c.html#a187c0a9191a7f9755bbe63f72af7088d">ec_fsm_soe_write_start</a> (<a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *fsm, <a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *datagram)</td></tr>
<tr class="memdesc:a187c0a9191a7f9755bbe63f72af7088d"><td class="mdescLeft">&#160;</td><td class="mdescRight">SoE state: WRITE START.  <a href="#a187c0a9191a7f9755bbe63f72af7088d">More...</a><br /></td></tr>
<tr class="separator:a187c0a9191a7f9755bbe63f72af7088d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ce6509b41b05ad9e20d1f8293c20794"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__soe_8c.html#a2ce6509b41b05ad9e20d1f8293c20794">ec_fsm_soe_write_request</a> (<a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *fsm, <a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *datagram)</td></tr>
<tr class="memdesc:a2ce6509b41b05ad9e20d1f8293c20794"><td class="mdescLeft">&#160;</td><td class="mdescRight">SoE state: WRITE REQUEST.  <a href="#a2ce6509b41b05ad9e20d1f8293c20794">More...</a><br /></td></tr>
<tr class="separator:a2ce6509b41b05ad9e20d1f8293c20794"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74542a08c62d78d7179e6b6d36302e10"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__soe_8c.html#a74542a08c62d78d7179e6b6d36302e10">ec_fsm_soe_write_check</a> (<a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *fsm, <a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *datagram)</td></tr>
<tr class="memdesc:a74542a08c62d78d7179e6b6d36302e10"><td class="mdescLeft">&#160;</td><td class="mdescRight">CoE state: WRITE CHECK.  <a href="#a74542a08c62d78d7179e6b6d36302e10">More...</a><br /></td></tr>
<tr class="separator:a74542a08c62d78d7179e6b6d36302e10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f9f8b5cc1b3d0128484df9a512a7b2f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__soe_8c.html#a7f9f8b5cc1b3d0128484df9a512a7b2f">ec_fsm_soe_write_response</a> (<a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *fsm, <a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *datagram)</td></tr>
<tr class="memdesc:a7f9f8b5cc1b3d0128484df9a512a7b2f"><td class="mdescLeft">&#160;</td><td class="mdescRight">SoE state: WRITE RESPONSE.  <a href="#a7f9f8b5cc1b3d0128484df9a512a7b2f">More...</a><br /></td></tr>
<tr class="separator:a7f9f8b5cc1b3d0128484df9a512a7b2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c6a2f5c73f2e7e47f9fd50055a3722f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__soe_8c.html#a3c6a2f5c73f2e7e47f9fd50055a3722f">ec_fsm_soe_end</a> (<a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *fsm, <a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *datagram)</td></tr>
<tr class="memdesc:a3c6a2f5c73f2e7e47f9fd50055a3722f"><td class="mdescLeft">&#160;</td><td class="mdescRight">State: END.  <a href="#a3c6a2f5c73f2e7e47f9fd50055a3722f">More...</a><br /></td></tr>
<tr class="separator:a3c6a2f5c73f2e7e47f9fd50055a3722f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e0e1784416c0baa0a9d9d69efc781bd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__soe_8c.html#a8e0e1784416c0baa0a9d9d69efc781bd">ec_fsm_soe_error</a> (<a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *fsm, <a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *datagram)</td></tr>
<tr class="memdesc:a8e0e1784416c0baa0a9d9d69efc781bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">State: ERROR.  <a href="#a8e0e1784416c0baa0a9d9d69efc781bd">More...</a><br /></td></tr>
<tr class="separator:a8e0e1784416c0baa0a9d9d69efc781bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac6e087c335a755f1ce0ada566734be4"><td class="memItemLeft" align="right" valign="top"><a id="aac6e087c335a755f1ce0ada566734be4"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__soe_8c.html#aac6e087c335a755f1ce0ada566734be4">ec_print_soe_error</a> (const <a class="el" href="globals_8h.html#a8d9ffff7dbe1babaa4786a63f2860d57">ec_slave_t</a> *slave, uint16_t error_code)</td></tr>
<tr class="memdesc:aac6e087c335a755f1ce0ada566734be4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Outputs an SoE error code. <br /></td></tr>
<tr class="separator:aac6e087c335a755f1ce0ada566734be4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22bcbd5d8832e375e3cb5ce0b960da5d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__soe_8c.html#a22bcbd5d8832e375e3cb5ce0b960da5d">ec_fsm_soe_init</a> (<a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *fsm)</td></tr>
<tr class="memdesc:a22bcbd5d8832e375e3cb5ce0b960da5d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="#a22bcbd5d8832e375e3cb5ce0b960da5d">More...</a><br /></td></tr>
<tr class="separator:a22bcbd5d8832e375e3cb5ce0b960da5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a422dd4f9c47393097303ca25a7d17dbf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__soe_8c.html#a422dd4f9c47393097303ca25a7d17dbf">ec_fsm_soe_clear</a> (<a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *fsm)</td></tr>
<tr class="memdesc:a422dd4f9c47393097303ca25a7d17dbf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#a422dd4f9c47393097303ca25a7d17dbf">More...</a><br /></td></tr>
<tr class="separator:a422dd4f9c47393097303ca25a7d17dbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34c4cc4d7d8988a5786599d07d52aebd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__soe_8c.html#a34c4cc4d7d8988a5786599d07d52aebd">ec_fsm_soe_transfer</a> (<a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *fsm, <a class="el" href="globals_8h.html#a8d9ffff7dbe1babaa4786a63f2860d57">ec_slave_t</a> *slave, <a class="el" href="structec__soe__request__t.html">ec_soe_request_t</a> *request)</td></tr>
<tr class="memdesc:a34c4cc4d7d8988a5786599d07d52aebd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Starts to transfer an IDN to/from a slave.  <a href="#a34c4cc4d7d8988a5786599d07d52aebd">More...</a><br /></td></tr>
<tr class="separator:a34c4cc4d7d8988a5786599d07d52aebd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2572aecb3869697ac939f78e22c3cd4e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__soe_8c.html#a2572aecb3869697ac939f78e22c3cd4e">ec_fsm_soe_exec</a> (<a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *fsm, <a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *datagram)</td></tr>
<tr class="memdesc:a2572aecb3869697ac939f78e22c3cd4e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Executes the current state of the state machine.  <a href="#a2572aecb3869697ac939f78e22c3cd4e">More...</a><br /></td></tr>
<tr class="separator:a2572aecb3869697ac939f78e22c3cd4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe5fc037034ee0591047a678d3d52e36"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__soe_8c.html#abe5fc037034ee0591047a678d3d52e36">ec_fsm_soe_success</a> (const <a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *fsm)</td></tr>
<tr class="memdesc:abe5fc037034ee0591047a678d3d52e36"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns, if the state machine terminated with success.  <a href="#abe5fc037034ee0591047a678d3d52e36">More...</a><br /></td></tr>
<tr class="separator:abe5fc037034ee0591047a678d3d52e36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5cdb42cd4bfb8be6cb51e950c3a1e730"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__soe_8c.html#a5cdb42cd4bfb8be6cb51e950c3a1e730">ec_fsm_soe_print_error</a> (<a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *fsm)</td></tr>
<tr class="memdesc:a5cdb42cd4bfb8be6cb51e950c3a1e730"><td class="mdescLeft">&#160;</td><td class="mdescRight">Output information about a failed SoE transfer.  <a href="#a5cdb42cd4bfb8be6cb51e950c3a1e730">More...</a><br /></td></tr>
<tr class="separator:a5cdb42cd4bfb8be6cb51e950c3a1e730"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6cebae49a5e2fddc1d4eacd82a2f04df"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__soe_8c.html#a6cebae49a5e2fddc1d4eacd82a2f04df">ec_fsm_soe_prepare_read</a> (<a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *fsm, <a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *datagram)</td></tr>
<tr class="memdesc:a6cebae49a5e2fddc1d4eacd82a2f04df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prepare a read operation.  <a href="#a6cebae49a5e2fddc1d4eacd82a2f04df">More...</a><br /></td></tr>
<tr class="separator:a6cebae49a5e2fddc1d4eacd82a2f04df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac4bf11d75a4045679fcc2bc4cd2b9f3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__soe_8c.html#aac4bf11d75a4045679fcc2bc4cd2b9f3">ec_fsm_soe_write_next_fragment</a> (<a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *fsm, <a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *datagram)</td></tr>
<tr class="memdesc:aac4bf11d75a4045679fcc2bc4cd2b9f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write next fragment.  <a href="#aac4bf11d75a4045679fcc2bc4cd2b9f3">More...</a><br /></td></tr>
<tr class="separator:aac4bf11d75a4045679fcc2bc4cd2b9f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a4013ee44d8165e19ed7abec334d499e4"><td class="memItemLeft" align="right" valign="top"><a id="a4013ee44d8165e19ed7abec334d499e4"></a>
const <a class="el" href="structec__code__msg__t.html">ec_code_msg_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__soe_8c.html#a4013ee44d8165e19ed7abec334d499e4">soe_error_codes</a> []</td></tr>
<tr class="memdesc:a4013ee44d8165e19ed7abec334d499e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">SoE error codes. <br /></td></tr>
<tr class="separator:a4013ee44d8165e19ed7abec334d499e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>EtherCAT SoE state machines. </p>

<p class="definition">Definition in file <a class="el" href="fsm__soe_8c_source.html">fsm_soe.c</a>.</p>
</div><h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="a9c7163e5550adaf891eb9afff86b72cd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9c7163e5550adaf891eb9afff86b72cd">&#9670;&nbsp;</a></span>ec_soe_opcodes</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="fsm__soe_8c.html#a9c7163e5550adaf891eb9afff86b72cd">ec_soe_opcodes</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SoE operations. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a9c7163e5550adaf891eb9afff86b72cda914c75cac48096f5ee9befec8bcf4160"></a>OPCODE_READ_REQUEST&#160;</td><td class="fielddoc"><p>Read request. </p>
</td></tr>
<tr><td class="fieldname"><a id="a9c7163e5550adaf891eb9afff86b72cda7b5653448be7413e965de6318740afdc"></a>OPCODE_READ_RESPONSE&#160;</td><td class="fielddoc"><p>Read response. </p>
</td></tr>
<tr><td class="fieldname"><a id="a9c7163e5550adaf891eb9afff86b72cda1b5afa15a9b8a6f640ea4307ab399901"></a>OPCODE_WRITE_REQUEST&#160;</td><td class="fielddoc"><p>Write request. </p>
</td></tr>
<tr><td class="fieldname"><a id="a9c7163e5550adaf891eb9afff86b72cdacc60027a463033de1a3f6a2ac52a4f0f"></a>OPCODE_WRITE_RESPONSE&#160;</td><td class="fielddoc"><p>Write response. </p>
</td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="fsm__soe_8c_source.html#l00050">50</a> of file <a class="el" href="fsm__soe_8c_source.html">fsm_soe.c</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a490a68315f4cc326d48ebfd5b051b78f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a490a68315f4cc326d48ebfd5b051b78f">&#9670;&nbsp;</a></span>ec_fsm_soe_read_start()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_soe_read_start </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *&#160;</td>
          <td class="paramname"><em>datagram</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SoE state: READ START. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
    <tr><td class="paramname">datagram</td><td>Datagram to use. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__soe_8c_source.html#l00254">254</a> of file <a class="el" href="fsm__soe_8c_source.html">fsm_soe.c</a>.</p>

</div>
</div>
<a id="ab34704de6495b549ad53ca84a80e22ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab34704de6495b549ad53ca84a80e22ea">&#9670;&nbsp;</a></span>ec_fsm_soe_read_request()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_soe_read_request </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *&#160;</td>
          <td class="paramname"><em>datagram</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SoE state: READ REQUEST. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
    <tr><td class="paramname">datagram</td><td>Datagram to use. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__soe_8c_source.html#l00285">285</a> of file <a class="el" href="fsm__soe_8c_source.html">fsm_soe.c</a>.</p>

</div>
</div>
<a id="a428b4a4e8318c83eaa4ecd287caf9e61"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a428b4a4e8318c83eaa4ecd287caf9e61">&#9670;&nbsp;</a></span>ec_fsm_soe_read_check()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_soe_read_check </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *&#160;</td>
          <td class="paramname"><em>datagram</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>CoE state: READ CHECK. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
    <tr><td class="paramname">datagram</td><td>Datagram to use. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__soe_8c_source.html#l00340">340</a> of file <a class="el" href="fsm__soe_8c_source.html">fsm_soe.c</a>.</p>

</div>
</div>
<a id="af87a35609040b73b496b8c1ec9a3aa74"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af87a35609040b73b496b8c1ec9a3aa74">&#9670;&nbsp;</a></span>ec_fsm_soe_read_response()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_soe_read_response </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *&#160;</td>
          <td class="paramname"><em>datagram</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SoE state: READ RESPONSE. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
    <tr><td class="paramname">datagram</td><td>Datagram to use. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__soe_8c_source.html#l00396">396</a> of file <a class="el" href="fsm__soe_8c_source.html">fsm_soe.c</a>.</p>

</div>
</div>
<a id="a187c0a9191a7f9755bbe63f72af7088d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a187c0a9191a7f9755bbe63f72af7088d">&#9670;&nbsp;</a></span>ec_fsm_soe_write_start()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_soe_write_start </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *&#160;</td>
          <td class="paramname"><em>datagram</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SoE state: WRITE START. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
    <tr><td class="paramname">datagram</td><td>Datagram to use. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__soe_8c_source.html#l00579">579</a> of file <a class="el" href="fsm__soe_8c_source.html">fsm_soe.c</a>.</p>

</div>
</div>
<a id="a2ce6509b41b05ad9e20d1f8293c20794"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ce6509b41b05ad9e20d1f8293c20794">&#9670;&nbsp;</a></span>ec_fsm_soe_write_request()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_soe_write_request </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *&#160;</td>
          <td class="paramname"><em>datagram</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SoE state: WRITE REQUEST. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
    <tr><td class="paramname">datagram</td><td>Datagram to use. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__soe_8c_source.html#l00606">606</a> of file <a class="el" href="fsm__soe_8c_source.html">fsm_soe.c</a>.</p>

</div>
</div>
<a id="a74542a08c62d78d7179e6b6d36302e10"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a74542a08c62d78d7179e6b6d36302e10">&#9670;&nbsp;</a></span>ec_fsm_soe_write_check()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_soe_write_check </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *&#160;</td>
          <td class="paramname"><em>datagram</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>CoE state: WRITE CHECK. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
    <tr><td class="paramname">datagram</td><td>Datagram to use. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__soe_8c_source.html#l00656">656</a> of file <a class="el" href="fsm__soe_8c_source.html">fsm_soe.c</a>.</p>

</div>
</div>
<a id="a7f9f8b5cc1b3d0128484df9a512a7b2f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f9f8b5cc1b3d0128484df9a512a7b2f">&#9670;&nbsp;</a></span>ec_fsm_soe_write_response()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_soe_write_response </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *&#160;</td>
          <td class="paramname"><em>datagram</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SoE state: WRITE RESPONSE. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
    <tr><td class="paramname">datagram</td><td>Datagram to use. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__soe_8c_source.html#l00710">710</a> of file <a class="el" href="fsm__soe_8c_source.html">fsm_soe.c</a>.</p>

</div>
</div>
<a id="a3c6a2f5c73f2e7e47f9fd50055a3722f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c6a2f5c73f2e7e47f9fd50055a3722f">&#9670;&nbsp;</a></span>ec_fsm_soe_end()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_soe_end </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *&#160;</td>
          <td class="paramname"><em>datagram</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>State: END. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
    <tr><td class="paramname">datagram</td><td>Datagram to use. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__soe_8c_source.html#l00837">837</a> of file <a class="el" href="fsm__soe_8c_source.html">fsm_soe.c</a>.</p>

</div>
</div>
<a id="a8e0e1784416c0baa0a9d9d69efc781bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8e0e1784416c0baa0a9d9d69efc781bd">&#9670;&nbsp;</a></span>ec_fsm_soe_error()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_soe_error </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *&#160;</td>
          <td class="paramname"><em>datagram</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>State: ERROR. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
    <tr><td class="paramname">datagram</td><td>Datagram to use. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__soe_8c_source.html#l00826">826</a> of file <a class="el" href="fsm__soe_8c_source.html">fsm_soe.c</a>.</p>

</div>
</div>
<a id="a22bcbd5d8832e375e3cb5ce0b960da5d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a22bcbd5d8832e375e3cb5ce0b960da5d">&#9670;&nbsp;</a></span>ec_fsm_soe_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_soe_init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__soe_8c_source.html#l00107">107</a> of file <a class="el" href="fsm__soe_8c_source.html">fsm_soe.c</a>.</p>

</div>
</div>
<a id="a422dd4f9c47393097303ca25a7d17dbf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a422dd4f9c47393097303ca25a7d17dbf">&#9670;&nbsp;</a></span>ec_fsm_soe_clear()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_soe_clear </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__soe_8c_source.html#l00120">120</a> of file <a class="el" href="fsm__soe_8c_source.html">fsm_soe.c</a>.</p>

</div>
</div>
<a id="a34c4cc4d7d8988a5786599d07d52aebd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a34c4cc4d7d8988a5786599d07d52aebd">&#9670;&nbsp;</a></span>ec_fsm_soe_transfer()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_soe_transfer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="globals_8h.html#a8d9ffff7dbe1babaa4786a63f2860d57">ec_slave_t</a> *&#160;</td>
          <td class="paramname"><em>slave</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structec__soe__request__t.html">ec_soe_request_t</a> *&#160;</td>
          <td class="paramname"><em>request</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Starts to transfer an IDN to/from a slave. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>State machine. </td></tr>
    <tr><td class="paramname">slave</td><td>EtherCAT slave. </td></tr>
    <tr><td class="paramname">request</td><td>SoE request. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__soe_8c_source.html#l00130">130</a> of file <a class="el" href="fsm__soe_8c_source.html">fsm_soe.c</a>.</p>

</div>
</div>
<a id="a2572aecb3869697ac939f78e22c3cd4e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2572aecb3869697ac939f78e22c3cd4e">&#9670;&nbsp;</a></span>ec_fsm_soe_exec()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ec_fsm_soe_exec </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *&#160;</td>
          <td class="paramname"><em>datagram</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Executes the current state of the state machine. </p>
<dl class="section return"><dt>Returns</dt><dd>1 if the datagram was used, else 0. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
    <tr><td class="paramname">datagram</td><td>Datagram to use. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__soe_8c_source.html#l00152">152</a> of file <a class="el" href="fsm__soe_8c_source.html">fsm_soe.c</a>.</p>

</div>
</div>
<a id="abe5fc037034ee0591047a678d3d52e36"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe5fc037034ee0591047a678d3d52e36">&#9670;&nbsp;</a></span>ec_fsm_soe_success()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ec_fsm_soe_success </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns, if the state machine terminated with success. </p>
<dl class="section return"><dt>Returns</dt><dd>non-zero if successful. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>Finite state machine </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__soe_8c_source.html#l00187">187</a> of file <a class="el" href="fsm__soe_8c_source.html">fsm_soe.c</a>.</p>

</div>
</div>
<a id="a5cdb42cd4bfb8be6cb51e950c3a1e730"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5cdb42cd4bfb8be6cb51e950c3a1e730">&#9670;&nbsp;</a></span>ec_fsm_soe_print_error()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_soe_print_error </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Output information about a failed SoE transfer. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>Finite state machine </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__soe_8c_source.html#l00196">196</a> of file <a class="el" href="fsm__soe_8c_source.html">fsm_soe.c</a>.</p>

</div>
</div>
<a id="a6cebae49a5e2fddc1d4eacd82a2f04df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6cebae49a5e2fddc1d4eacd82a2f04df">&#9670;&nbsp;</a></span>ec_fsm_soe_prepare_read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ec_fsm_soe_prepare_read </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *&#160;</td>
          <td class="paramname"><em>datagram</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Prepare a read operation. </p>
<dl class="section return"><dt>Returns</dt><dd>0 on success, otherwise a negative error code. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
    <tr><td class="paramname">datagram</td><td>Datagram to use. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__soe_8c_source.html#l00219">219</a> of file <a class="el" href="fsm__soe_8c_source.html">fsm_soe.c</a>.</p>

</div>
</div>
<a id="aac4bf11d75a4045679fcc2bc4cd2b9f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac4bf11d75a4045679fcc2bc4cd2b9f3">&#9670;&nbsp;</a></span>ec_fsm_soe_write_next_fragment()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_soe_write_next_fragment </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__soe_8h.html#a6f2210c6eb570d207312a8ea94a15527">ec_fsm_soe_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *&#160;</td>
          <td class="paramname"><em>datagram</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write next fragment. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
    <tr><td class="paramname">datagram</td><td>Datagram to use. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__soe_8c_source.html#l00522">522</a> of file <a class="el" href="fsm__soe_8c_source.html">fsm_soe.c</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_c1346cf4828efdd0d2baf0d391d01b77.html">master</a></li><li class="navelem"><a class="el" href="fsm__soe_8c.html">fsm_soe.c</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
